package service

import "errors"

type UserServiceIf interface{
	GetName(userId int) string
	DelUser(userId int) error
}

type User struct {}

func (u User)GetName(userId int) string{
	if userId == 101 {
		return "Splash brothers"
	}
	return "呵呵呵呵"
}

func (u User)DelUser(userId int) error{
	if userId == 101 {
		return errors.New("无权限")
	}
	return nil
}